const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 将token值作为公共的访问属性放出
  token: state => state.user.token,
  username: state => state.user.userInfo.username, // 开放username用户信息
  userId: state => state.user.userInfo.userId, // 获取用户id的方式写了太多层级，可以把它开放出来
  staffPhoto: state => state.user.userInfo.staffPhoto, // 开放头像
  companyId: state => state.user.userInfo.companyId, // 开放公司id
  routes: state => state.permission.routes, // 将子模块的权限开放出去
  userInfo: state => state.user.userInfo// 开发用户信息(方便首页使用)
}
export default getters
